<template>
    <div class="bg" :style="{ '--img-url': `url(${url})` }"></div>
</template>

<script lang="ts" setup>
const { url } = defineProps<{ url: string }>()
</script>

<style scoped>
.bg {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    position: absolute;
    background-image: var(--img-url);
    background-size: cover;
    background-position: 40%;
    pointer-events: none;
    z-index: -1;
}
</style>